﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;

namespace C4F.DevKit.Bluetooth
{
    namespace FileTransferProfile
    {

        /// <summary>
        /// EventArgs class to be used when an DeleteFile operation 
        /// completes.
        /// </summary>
        public class DeleteFileCompletedEventArgs : AsyncCompletedEventArgs
        {
            #region Private Members

            /// <summary>
            /// The location of the file on remote device that has to be deleted.
            /// </summary>
            private string remFilePath;


            #endregion

            #region Public Properties

            /// <summary>
            /// Gets the location of the file on remote device that has to be deleted.
            /// </summary>
            public string RemoteFilePath
            {
                get
                { return this.remFilePath; }
            }


            #endregion

            #region Constructor
            /// <summary>
            /// Initializes the DeleteFileCompletedEventArgs object.
            /// </summary>
            /// <param name="remoteFilePath">The location of the file on remote 
            /// device that has to be deleted.</param>        
            /// <param name="error">An error that occurred during the 
            /// asynchronous operation.</param>
            /// <param name="cancelled">A value indicating whether the 
            /// asynchronous operation was cancelled.</param>
            /// <param name="userState">The user-supplied state object supplied 
            /// when the asynchronous operation was requested.</param>


            public DeleteFileCompletedEventArgs(string remoteFilePath,
                                                Exception error,
                                                bool cancelled,
                                                object userState)
                : base(error, cancelled, userState)
            {

                this.remFilePath = remoteFilePath;

            }
            #endregion
        }
    }

}